package bean;

public class Equipe implements Comparable<Equipe> {
	
	private long id;
	private String nom;
	private String club;
	private Evenement evenement;
	public Equipe(){
	}
	public Equipe(long id,String nom,String club,Evenement evenement){
		this.club = club;
		this.id = id;
		this.nom = nom;
		this.evenement = evenement;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getClub() {
		return club;
	}
	public void setClub(String club) {
		this.club = club;
	}
	public Evenement getEvenement() {
		return evenement;
	}
	public void setEvenement(Evenement evenement) {
		this.evenement = evenement;
	}
	@Override
	public int compareTo(Equipe o) {
		return this.id == o.getId() ? 1 : 0;
	}
	
}
